package cn.echogo.ipart.activity;

import android.app.Activity;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.Menu;
import cn.echogo.framework.util.ViewUtil;
import cn.echogo.framework.widget.EGScaleImageView;
import cn.echogo.ipart.R;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        EGScaleImageView ivPhoto = (EGScaleImageView) findViewById(R.id.ivPhoto);
        DisplayMetrics dm = ViewUtil.getDisplayMetrics(this);
        
        ivPhoto.setImageResource(R.drawable.img01);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
}
